<template>
    <div class="app-box">
        <div id="nav">
            <router-link to="/">CodeMirror的使用编写sql语句</router-link>
            <router-link to="/MonitorScrolling">滚动监听</router-link>
            <router-link to="/Draggable">拖拽功能</router-link>
            <router-link to="/nested-example">拖拽功能nested</router-link>
            <router-link to="/DragTable">table拖拽功能</router-link>
            <router-link to="/ForInPromise">多层for循环中的请求异步问题</router-link>
            <router-link to="/CustomShowDate">控制时间控件的显示隐藏</router-link>
            <router-link to="/myselect">多选组件</router-link>
            <router-link to="/hoverTable">固定栏鼠标滑动table样式</router-link>
            <router-link to="/page">自适应分页（根据宽度变化）</router-link>
            <router-link to="/slotcom">将vue组件插入到dom中</router-link>
        </div>
        <router-view/>
    </div>
</template>

<style>
/* #app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
} */
html, body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
}

#app {
    width: 100%;
    height: 100%;
}

#nav {
    padding: 30px;
    width: 200px;
    display: grid;
}

#nav a {
    font-weight: bold;
    color: #2c3e50;
    margin-top: 10px;
}

#nav a.router-link-exact-active {
    color: #42b983;
}

.app-box {
    display: flex;
    align-items: flex-start;

}
</style>
